package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.entity.Dish;
import com.itheima.reggie.vo.DishVO;

import java.util.List;

public interface DishService extends IService<Dish> {

    //新增菜品，同时插入菜品对应的口味数据，需要操作两张表：dish、dish_flavor
    void saveWithFlavor(DishVO dishVO);

    void updateWithFlavor(DishVO dishVO);


    //--5-- 起售/停售 批量起售/批量停售
    void restatusByIds(List<Long> ids, Integer num);
}